package com.pactera.asmp.server.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TaskDeviceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TaskDeviceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTaskIdIsNull() {
            addCriterion("task_id is null");
            return (Criteria) this;
        }

        public Criteria andTaskIdIsNotNull() {
            addCriterion("task_id is not null");
            return (Criteria) this;
        }

        public Criteria andTaskIdEqualTo(Long value) {
            addCriterion("task_id =", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotEqualTo(Long value) {
            addCriterion("task_id <>", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThan(Long value) {
            addCriterion("task_id >", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThanOrEqualTo(Long value) {
            addCriterion("task_id >=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThan(Long value) {
            addCriterion("task_id <", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThanOrEqualTo(Long value) {
            addCriterion("task_id <=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdIn(List<Long> values) {
            addCriterion("task_id in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotIn(List<Long> values) {
            addCriterion("task_id not in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdBetween(Long value1, Long value2) {
            addCriterion("task_id between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotBetween(Long value1, Long value2) {
            addCriterion("task_id not between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andDuidIsNull() {
            addCriterion("duid is null");
            return (Criteria) this;
        }

        public Criteria andDuidIsNotNull() {
            addCriterion("duid is not null");
            return (Criteria) this;
        }

        public Criteria andDuidEqualTo(String value) {
            addCriterion("duid =", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidNotEqualTo(String value) {
            addCriterion("duid <>", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidGreaterThan(String value) {
            addCriterion("duid >", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidGreaterThanOrEqualTo(String value) {
            addCriterion("duid >=", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidLessThan(String value) {
            addCriterion("duid <", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidLessThanOrEqualTo(String value) {
            addCriterion("duid <=", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidLike(String value) {
            addCriterion("duid like", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidNotLike(String value) {
            addCriterion("duid not like", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidIn(List<String> values) {
            addCriterion("duid in", values, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidNotIn(List<String> values) {
            addCriterion("duid not in", values, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidBetween(String value1, String value2) {
            addCriterion("duid between", value1, value2, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidNotBetween(String value1, String value2) {
            addCriterion("duid not between", value1, value2, "duid");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeIsNull() {
            addCriterion("occupy_start_time is null");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeIsNotNull() {
            addCriterion("occupy_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeEqualTo(Date value) {
            addCriterion("occupy_start_time =", value, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeNotEqualTo(Date value) {
            addCriterion("occupy_start_time <>", value, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeGreaterThan(Date value) {
            addCriterion("occupy_start_time >", value, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("occupy_start_time >=", value, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeLessThan(Date value) {
            addCriterion("occupy_start_time <", value, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("occupy_start_time <=", value, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeIn(List<Date> values) {
            addCriterion("occupy_start_time in", values, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeNotIn(List<Date> values) {
            addCriterion("occupy_start_time not in", values, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeBetween(Date value1, Date value2) {
            addCriterion("occupy_start_time between", value1, value2, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("occupy_start_time not between", value1, value2, "occupyStartTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeIsNull() {
            addCriterion("occupy_end_time is null");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeIsNotNull() {
            addCriterion("occupy_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeEqualTo(Date value) {
            addCriterion("occupy_end_time =", value, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeNotEqualTo(Date value) {
            addCriterion("occupy_end_time <>", value, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeGreaterThan(Date value) {
            addCriterion("occupy_end_time >", value, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("occupy_end_time >=", value, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeLessThan(Date value) {
            addCriterion("occupy_end_time <", value, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("occupy_end_time <=", value, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeIn(List<Date> values) {
            addCriterion("occupy_end_time in", values, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeNotIn(List<Date> values) {
            addCriterion("occupy_end_time not in", values, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeBetween(Date value1, Date value2) {
            addCriterion("occupy_end_time between", value1, value2, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("occupy_end_time not between", value1, value2, "occupyEndTime");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusIsNull() {
            addCriterion("occupy_status is null");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusIsNotNull() {
            addCriterion("occupy_status is not null");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusEqualTo(Integer value) {
            addCriterion("occupy_status =", value, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusNotEqualTo(Integer value) {
            addCriterion("occupy_status <>", value, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusGreaterThan(Integer value) {
            addCriterion("occupy_status >", value, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("occupy_status >=", value, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusLessThan(Integer value) {
            addCriterion("occupy_status <", value, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusLessThanOrEqualTo(Integer value) {
            addCriterion("occupy_status <=", value, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusIn(List<Integer> values) {
            addCriterion("occupy_status in", values, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusNotIn(List<Integer> values) {
            addCriterion("occupy_status not in", values, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusBetween(Integer value1, Integer value2) {
            addCriterion("occupy_status between", value1, value2, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andOccupyStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("occupy_status not between", value1, value2, "occupyStatus");
            return (Criteria) this;
        }

        public Criteria andSupportCanIsNull() {
            addCriterion("support_can is null");
            return (Criteria) this;
        }

        public Criteria andSupportCanIsNotNull() {
            addCriterion("support_can is not null");
            return (Criteria) this;
        }

        public Criteria andSupportCanEqualTo(Byte value) {
            addCriterion("support_can =", value, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportCanNotEqualTo(Byte value) {
            addCriterion("support_can <>", value, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportCanGreaterThan(Byte value) {
            addCriterion("support_can >", value, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportCanGreaterThanOrEqualTo(Byte value) {
            addCriterion("support_can >=", value, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportCanLessThan(Byte value) {
            addCriterion("support_can <", value, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportCanLessThanOrEqualTo(Byte value) {
            addCriterion("support_can <=", value, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportCanIn(List<Byte> values) {
            addCriterion("support_can in", values, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportCanNotIn(List<Byte> values) {
            addCriterion("support_can not in", values, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportCanBetween(Byte value1, Byte value2) {
            addCriterion("support_can between", value1, value2, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportCanNotBetween(Byte value1, Byte value2) {
            addCriterion("support_can not between", value1, value2, "supportCan");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryIsNull() {
            addCriterion("support_auxiliary is null");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryIsNotNull() {
            addCriterion("support_auxiliary is not null");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryEqualTo(Byte value) {
            addCriterion("support_auxiliary =", value, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryNotEqualTo(Byte value) {
            addCriterion("support_auxiliary <>", value, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryGreaterThan(Byte value) {
            addCriterion("support_auxiliary >", value, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryGreaterThanOrEqualTo(Byte value) {
            addCriterion("support_auxiliary >=", value, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryLessThan(Byte value) {
            addCriterion("support_auxiliary <", value, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryLessThanOrEqualTo(Byte value) {
            addCriterion("support_auxiliary <=", value, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryIn(List<Byte> values) {
            addCriterion("support_auxiliary in", values, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryNotIn(List<Byte> values) {
            addCriterion("support_auxiliary not in", values, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryBetween(Byte value1, Byte value2) {
            addCriterion("support_auxiliary between", value1, value2, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andSupportAuxiliaryNotBetween(Byte value1, Byte value2) {
            addCriterion("support_auxiliary not between", value1, value2, "supportAuxiliary");
            return (Criteria) this;
        }

        public Criteria andAuxDuidIsNull() {
            addCriterion("aux_duid is null");
            return (Criteria) this;
        }

        public Criteria andAuxDuidIsNotNull() {
            addCriterion("aux_duid is not null");
            return (Criteria) this;
        }

        public Criteria andAuxDuidEqualTo(String value) {
            addCriterion("aux_duid =", value, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidNotEqualTo(String value) {
            addCriterion("aux_duid <>", value, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidGreaterThan(String value) {
            addCriterion("aux_duid >", value, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidGreaterThanOrEqualTo(String value) {
            addCriterion("aux_duid >=", value, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidLessThan(String value) {
            addCriterion("aux_duid <", value, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidLessThanOrEqualTo(String value) {
            addCriterion("aux_duid <=", value, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidLike(String value) {
            addCriterion("aux_duid like", value, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidNotLike(String value) {
            addCriterion("aux_duid not like", value, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidIn(List<String> values) {
            addCriterion("aux_duid in", values, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidNotIn(List<String> values) {
            addCriterion("aux_duid not in", values, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidBetween(String value1, String value2) {
            addCriterion("aux_duid between", value1, value2, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andAuxDuidNotBetween(String value1, String value2) {
            addCriterion("aux_duid not between", value1, value2, "auxDuid");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNull() {
            addCriterion("is_deleted is null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNotNull() {
            addCriterion("is_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedEqualTo(Integer value) {
            addCriterion("is_deleted =", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotEqualTo(Integer value) {
            addCriterion("is_deleted <>", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThan(Integer value) {
            addCriterion("is_deleted >", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_deleted >=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThan(Integer value) {
            addCriterion("is_deleted <", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThanOrEqualTo(Integer value) {
            addCriterion("is_deleted <=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIn(List<Integer> values) {
            addCriterion("is_deleted in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotIn(List<Integer> values) {
            addCriterion("is_deleted not in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedBetween(Integer value1, Integer value2) {
            addCriterion("is_deleted between", value1, value2, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotBetween(Integer value1, Integer value2) {
            addCriterion("is_deleted not between", value1, value2, "isDeleted");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}